<template>
    <div class="loading-dots flex items-center justify-center">
        <div class="dot"></div>
        <div class="dot"></div>
        <div class="dot"></div>
    </div>
</template>

<script lang="ts" setup>
</script>

<style scoped>
.loading-dots {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-ai-chat-input-loading-dots);
    border-radius: 50%;
    opacity: 0.6;
    animation: dot-fade 0.8s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.15s;
}

.dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes dot-fade {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}
</style>